import { Dept, Post, Role, User } from "@prisma/client";


export type UserType = {
    browser: string;
    ipaddr: string;
    loginLocation: string;
    loginTime: Date;
    os: string;
    permissions: string[];
    roles: string[];
    token: string;
    user: {
        dept: Dept;
        roles: Array<Role>;
        posts: Array<Post>;
    } & User;
    userId: number;
    username: string;
    deptId: number;
};
